package com.le.dub.controller;

import com.le.dub.common.Response;
import com.le.dub.mobile.Good;
import com.le.dub.service.IGoodService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 用户商品请求
 *
 * @author guole
 * @created 2024/10/25
 */
@RestController
@RequestMapping("/app/good")
public class AppGoodController {
    @Resource
    private IGoodService goodService;

    /**
     * 查看商品列表
     *
     * @return Ajaxresult转换结果
     */
    @RequestMapping(value = "/goodList")
    public Response goodList() {
        List<Good> goodList = goodService.list();
        return Response.success(goodList);

    }




}
